<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<form id="roleEditForm" onsubmit="return false">
	<input type="hidden" name="role.id" value="${role.id}">
	<table width="250" border="0" cellpadding="0" cellspacing="0" class='hall_table'>
		<tbody>
			<tr>
				<td>
					角色名:
				</td>
				<td >
					<input type="text" name="role.name" value="${role.name}">
				</td>
				
			</tr>
			
			<tr style="height: 12px">
				<td>
				</td>
				<td >
					<label class="error" for="role.name" generated="true">
				</td>
				
			</tr>
			<tr>
				<td>
					角色描述:
				</td>
				<td>
					<input type="text" name="role.description" value="${role.description}">
				</td>
			</tr>
			<tr>
				<td>
					角色菜单:
				</td>
				<td>
					<input type="button" value="点击选择" id='selectMenuBtn'>
				</td>
			</tr>
		</tbody>
	</table>
	<div id="menuTreePanel" >
		<s:if test='role.menus!= null'>
			<s:iterator value="role.menus"  >
			    <span>${title}</span>
				<input type='hidden' name='menuId' value='${id}'/>
			</s:iterator>
		</s:if>
	</div>
	<div style="float: right;">
		<div class='buttonPanel' >
			<a class="saveBtn"  onclick='saveRole()'></a>
		</div>
	</div>
</form>